﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Zoomtel.Web.Controllers;
using Zoomtel.Service.BIZ;
using Microsoft.AspNetCore.Authorization;

namespace Zoomtel.Web.Areas.Pub.Controllers
{
    [Description("银行列表接口")]
    public class BankController : PubModuleController
    {
        BankService _bankService;
        public BankController(BankService bankService)
        {
            _bankService = bankService;
        }


        [Description("获取银行列表")]
        [HttpPost]
        [AllowAnonymous]
        public Task<IResultModel> Query()
        {

            return _bankService.Query(new Entity.BIZ.BankEntity());
        }
    }
}